#!/usr/bin/env bash

git reset --hard
git pull
mvn clean package
ps -ef | grep java | grep 'deep-learning-web' | awk '{print $2}' | xargs kill -9
java -Dspring.profiles.active=prod -Dserver.port=8081 -jar DeepLearningWeb/target/deep-learning-web.jar &